package com.zyj.exam_app.exam.mapper;

import com.zyj.exam_app.exam.bean.ExamPaper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 答卷信息Mapper
 */
@Mapper
public interface ExamPaperMapper {
    /**
     * 根据用户ID 查询答卷信息
     * @return
     */
    public List<ExamPaper> selectExamPaperByUserId(@Param("userId") String userId);

    /**
     * 插入一条答卷数据
     * @param examPaper
     * @return
     */
    public int insertOneExamPaper(ExamPaper examPaper);

    /**
     * 更新一条数据
     * @param examPaper
     */
    public void updateExamPaperById(@Param("examPaper") ExamPaper examPaper);

}
